using System;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Domain.Services;

namespace UserInterface.Admin
{
    public partial class NewCategory : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Title = (string)GetLocalResourceObject("Title");
        }
        
        protected void OkButton_OnClick(object sender, EventArgs e)
        {
            string name = NameTextBox.Text;
            CategoryService.NewCategory(name);
            Response.Redirect("ManageForums.aspx");
        }

        protected void CancelButton_OnClick(object sender, EventArgs e)
        {
            Response.Redirect("ManageForums.aspx");
        }
    }
}
